package hns.services;

import hns.Bot;
import hns.Service;

/**
 * Greets the user that joins any channel the bot is in.
 * @author c03
 *
 */
public class GreetingService implements Service {
	private String greeting = ", I will serve you better than the classiest prostitute you've ever had. Type !help in channel.";
	private String command = null; 		// We are not reacting on anything.
	
	
	public GreetingService(){
		Bot.getInstance().addService(getCommandName(), this);
	}

	@Override
	public void onMessage(String channel, String sender, String login,String hostname, String message) {
		// TODO Auto-generated method stub

	}

	@Override
	public void onJoin(String channel, String sender, String login, String hostname) {
		Bot.getInstance().sendNotice(sender,"Hello "+sender+ ", I am "+Bot.getInstance().getName()+greeting);
	}

	@Override
	public String getCommandName() {
		return command;
	}

}
